package com.training.io.serial;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

public class SerialDemo2 {
	public static void main(String[] args) throws Exception {
		ObjectInputStream in = new ObjectInputStream(
				new FileInputStream("D:\\car.bat"));
		
		Car c = (Car) in.readObject();
		
		System.out.println(c);
		
		in.close();
	}
}
